import moment, { MomentInput } from 'moment'



export const formatTime = (value: MomentInput, style = 'YYYY-MM-DD HH:mm:ss'):string => value ? moment(value).format(style) : '--'